package File_Visitor_18;

import File_Visitor_18.File.AudioFile;
import File_Visitor_18.File.ImageFile;
import File_Visitor_18.File.VideoFile;

public class VirusScannerVisitor implements FileVisitor {
    @Override
    public void scan(AudioFile audioFile) {
        System.out.println("正在扫描音频文件: " + audioFile.getName());
    }

    @Override
    public void scan(VideoFile videoFile) {
        System.out.println("正在扫描视频文件: " + videoFile.getName());
    }

    @Override
    public void scan(ImageFile imageFile) {
        System.out.println("正在扫描图片文件: " + imageFile.getName());
    }
}
